package com.lmh.backend.service.serviceImpl;

import com.lmh.backend.dao.UserDao;
import com.lmh.backend.entity.User;
import com.lmh.backend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    private UserDao userDao;
    @Autowired
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User getUserByName(String username) {
        return userDao.getUserByName(username);
    }

    @Override
    public void save(User user) {
        userDao.save(user);
    }
}
